package gui;

import java.awt.Component;

import javax.swing.JList;
import javax.swing.ListCellRenderer;

/**
 * Trida obsluhujici vykreslovani grafickeho uzivatelskeho prvku seznamu nakladnich vozu.
 * 
 * @author Petr Altman
 *
 */
public class TruckCellRenderer implements ListCellRenderer {

	@Override
	public Component getListCellRendererComponent(JList list, Object value,
			int index, boolean isSelected, boolean hasGotFocus) {
		TruckListItem item = (TruckListItem)value;
		return item;
	}

}
